<%@ Page Language="C#" MasterPageFile="~/pages/NoSidebarPage.master" AutoEventWireup="true" CodeFile="AdvancedSearch.aspx.cs" Inherits="pages_AdvancedSearch" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="headHolder" Runat="Server">

<style type="text/css">
    .search_nav{
    padding-left:5px;
    padding-right:5px;
    }
    .active{
    font-weight:bold;
    color:#003399;
    text-decoration:none;
    }
</style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentHolder" Runat="Server">

    <table style="margin-left:100px;" class="form_table" id="TABLE1" onclick="return TABLE1_onclick()">
        <tr>
            <td colspan="5" style="line-height:40px;padding-bottom:15px;">
                <asp:LinkButton ID="lnkTour" runat="server" CssClass="search_nav" OnClick="lnkTour_Click">Tour</asp:LinkButton>
                <asp:LinkButton ID="lnkHotel" runat="server" CssClass="search_nav" OnClick="lnkHotel_Click">Hotel</asp:LinkButton>
                <asp:LinkButton ID="lnkRestaurant" runat="server" CssClass="search_nav" OnClick="lnkRestaurant_Click">Restaurant</asp:LinkButton>
                <asp:LinkButton ID="lnkResort" runat="server" CssClass="search_nav" OnClick="lnkResort_Click">Resort</asp:LinkButton>
                <asp:LinkButton ID="lnkSpot" runat="server" CssClass="search_nav" OnClick="lnkSpot_Click">Spot</asp:LinkButton>
                <asp:LinkButton ID="lnkArticle" runat="server" CssClass="search_nav" OnClick="lnkArticle_Click">Article</asp:LinkButton></td>
        </tr>
        <tr>
            <td style="width: 204px">
                <asp:Label ID="Label1" runat="server" Text="Enter name or text to search:"></asp:Label></td>
            <td style="width: 184px">
                <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox></td>
            <td style="width: 55px" >
            </td>
            <td style="width: 155px">
            </td>
            <td style="width: 39px" >
            </td>
        </tr>
        <tr>
            <td style="width: 204px">
                <asp:Label ID="Label3" runat="server" Text="Price between:"></asp:Label></td>
            <td style="width: 184px" >
                <asp:TextBox ID="txtFromPrice" runat="server" Text="0"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ErrorMessage="Invalid number value"
                ControlToValidate="txtFromPrice" ValidationExpression="\d+" ValidationGroup="A" >*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="rqvFromPrice" runat="server" ControlToValidate="txtFromPrice"
                Display="Dynamic" ValidationGroup="A">*</asp:RequiredFieldValidator></td>
            <td style="width: 55px" >
                and</td>
            <td style="width: 155px" >
                <asp:TextBox ID="txtToPrice" runat="server" Text="0"></asp:TextBox>                
            </td>
            <td>
                <asp:RegularExpressionValidator ID="regToPrice" runat="server" ControlToValidate="txtToPrice" 
                ValidationExpression="\d+" ErrorMessage="Invalid number value" Display="Dynamic" ValidationGroup="A">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="rqvToPrice" runat="server" ControlToValidate="txtToPrice"
                Display="Dynamic" ValidationGroup="A">*</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td style="width: 204px">
                <asp:Label ID="Label4" runat="server" Text="Quanlity:"></asp:Label></td>
            <td style="width: 184px">
                <asp:DropDownList ID="cmbQuanlity" runat="server">
                </asp:DropDownList></td>
            <td style="width: 55px" >
                Location:</td>
            <td style="width: 155px" >
                <asp:DropDownList ID="cmbLocation" AutoPostBack="false" runat="server">
                </asp:DropDownList></td>
            <td style="width: 39px" >
            </td>
        </tr>
        <tr>
            <td style="width: 204px; height: 30px">
                <asp:Label ID="Label5" runat="server" Text="Number of results per page:"></asp:Label></td>
            <td style="width: 184px; height: 30px">
                <asp:DropDownList ID="cmbNumberOfItems" AutoPostBack="false"  runat="server">
                </asp:DropDownList></td>
            <td style="width: 55px; height: 30px">
            </td>
            <td style="width: 155px; height: 30px">
            </td>
            <td style="height: 30px; width: 39px;">
            </td>
        </tr>
        <tr>
            <td style="width: 204px; height: 30px;">
                </td>
            <td style="width: 184px; height: 30px;">
                <asp:LinkButton ID="lnkSearch" runat="server" ValidationGroup="A" CssClass="c_button" OnClick="lnkSearch_Click">Search</asp:LinkButton></td>
            <td style="width: 55px; height: 30px;">
                </td>
            <td style="width: 155px; height: 30px;">
            </td>
            <td style="height: 30px; width: 39px;" >
            </td>
        </tr>
    </table>
    <hr />
    <asp:Repeater ID="rptTours" runat="server">
    <ItemTemplate>
        <div class="contentbox">
				    <a href="TourDetails.aspx?id=<%#Eval("Id") %>"><img src="<%#Eval("ImageURL") %>" alt="" class="thumb_image"/></a>
				    <h4 style="display:inline;clear:none;"><%#Eval("Name") %></h4><br />
				    <%#Eval("Description")%><br/>				   
					    <a href="TourDetails.aspx?id=<%#Eval("Id") %>">Details ...</a>
					    <a href= "TourBooking.aspx?&type=tour&id=<%#Eval("Id") %>">Booking &raquo;&raquo;</a>
				   
	    </div>			
    </ItemTemplate>
    </asp:Repeater>
    <asp:Repeater ID="rptPlaceHotel" runat="server">
        <ItemTemplate>
        <div class="contentbox">
            <img src="<%#Eval("ImageURL") %>" alt="" class="thumb_image" />
            <h4 style="display:inline;clear:none;"><a href="PlaceDetails.aspx?id=<%#Eval("Id") %>"><%#Eval("Name") %></a></h4><br />
             <%#Eval("Description")%><br/>				   
			 <a href="TourDetails.aspx?id=<%#Eval("Id") %>">Details ...</a>
         </div>
        </ItemTemplate>
    </asp:Repeater>
    <asp:Repeater ID="rptSpot" runat="server">
        <ItemTemplate>
        <div class="contentbox">
            <img src="<%#Eval("ImageURL") %>" alt="" class="thumb_image" />
            <h4 style="display:inline;clear:none;"><a href="PlaceDetails.aspx?id=<%#Eval("Id") %>"><%#Eval("Name") %></a></h4><br />
             <%#Eval("Description") %><br/>				   
			 <a href="Spot.aspx?id=<%#Eval("Id") %>">Details ...</a>
         </div>
        </ItemTemplate>
    </asp:Repeater>
    <asp:Repeater ID="rptArticle" runat="server">
        <HeaderTemplate>
            <div class="contentbox">
            <ul style="line-height:30px;">
        </HeaderTemplate>
        <ItemTemplate>
            <li>
            <strong><a href="Article.aspx?id=<%#Eval("Id") %>"><%#Eval("Title") %></a></strong>
            </li>
        </ItemTemplate>
        <FooterTemplate>
             </ul>
            </div>
        </FooterTemplate>
    </asp:Repeater>
    <span class="v_padding10"></span>
    <asp:Label ID="lblPaging" runat="Server"></asp:Label>
</asp:Content>

